package com.example.myapplication.kotlin

import android.R


//帮我写一个入口函数，输出 你好，鸿蒙
fun main() {
    val abc2 = abc2()
    abc2.show()
    abc2.eat()
}

interface IPerson {
    // 1. 抽象属性
    val name: String
    val age: Int

    // 2. 抽象方法
    fun intro()
    fun work(msg: String)

    // 3. 默认实现
    fun eat() {
        println("吃吃吃")
    }
}

open class abc{
    open fun show(){
        println("父类的输出方法")
    }
}
class abc2:abc(),IPerson{
    override fun show() {
        super.show()
        println("子类的输出方法")
    }

    override val name: String
        get() = TODO("Not yet implemented")
    override val age: Int
        get() = TODO("Not yet implemented")

    override fun intro() {
        TODO("Not yet implemented")
    }

    override fun work(msg: String) {
        TODO("Not yet implemented")
    }

}


